using Vin.Tool.Attributes;

namespace Vin.Extension.ServerSentEvent.Options;

[Option("VinSse")]
public class SseOption
{
    /// <summary>
    /// SSE 连接路径
    /// </summary>
    public string Path { get; set; } = "/sse";

    /// <summary>
    /// 服务端查询参数键名
    /// </summary>
    public string ServiceQueryKey { get; set; } = "key";

    /// <summary>
    /// 跨域白名单
    /// </summary>
    public List<string> CorsOrigins { get; set; } = new();
}